import * as React from 'react';
import {observer} from 'mobx-react';
import {Spin} from 'antd';
import './SpinStyle.less';

@observer
export class MySpin extends React.Component<any,any>{
    render(){
        const { SpiLoading } = this.props;

        return (
            <div className="spinner" style={{
                display: SpiLoading ? 'block' : 'none'
            }}>
                <Spin size="large"></Spin>
            </div>
        )
    }
}